home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn Microsoft Visual Basic 6.0 Now
/
Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO
/
media
/
chap09
/
b09d015.cc2
< prev
next >
Wrap
Text File
|
1998-06-07
|
896b
|
21 lines
0, Your assignment in Lab 9 is to create a
3, rate function in a standard module that
6, computes the win rate for the Lucky
7, Seven program. The rate function should
10, determine the win rate by dividing the
12, number of spins by the number of jackpot
14, hits. To calculate this rate, you'll also
18, need to create and use two public
20, variables. When you run the program, it should
24, show the win percentage in the lower left
26, corner of the screen. For the first
30, five spins, the rate stays at one hundred.
33, You're hitting the jackpot every time.
36, As you continue to click, however, 83%,
40, 71%, 75%, another win, 66%, and 60% for a
49, total of six for ten. If you continue
52, spinning, the rate hits about 28%, the
57, statistical average rate for the program.
61, Actually, pretty poor odds. Better keep
63, that day job.
67, END